#include "ConnectionMng.h"

ConnectionMng &ConnectionMng::GetInstance() {
    static ConnectionMng instance;
    return instance;
}

void ConnectionMng::AddConnection(const std::shared_ptr<Connection> &con_ptr)
{
    _map_cons[con_ptr->GetUuid()] = con_ptr;
}

void ConnectionMng::RmvConnection(const std::string &id)
{
    _map_cons.erase(id);
}

ConnectionMng::ConnectionMng() = default;

